//
//  PlaytourModel.m
//  一点互助
//
//  Created by 张泊秋 on 16/9/1.
//  Copyright © 2016年 zhangboqiu. All rights reserved.
//

#import "PlaytourModel.h"

@implementation PlaytourModel

+ (NSArray *)modleArrayWithGoodsInfoArray:(NSArray *)infoArray {
    
    NSMutableArray *modelArray = [NSMutableArray array];
    
    for (NSDictionary *infoDic in infoArray) {
        PlaytourModel *model = [[PlaytourModel alloc]init];
        model.idPlay = [infoDic[@"id"] integerValue];
        model.price = [infoDic[@"bag_price"] floatValue];
        model.wishID = [infoDic[@"wish_id"] integerValue];
        model.uid = [infoDic[@"uid"] integerValue];
        model.toUid = [infoDic[@"to_uid"] integerValue];
        model.time = infoDic[@"add_time"];
        model.avatar = infoDic[@"avatar"];
        model.niceName = infoDic[@"user_nicename"];
        model.toAvatar = infoDic[@"to_avatar"];
        
        model.toNiceName = infoDic[@"to_user_nicename"];
        model.title = infoDic[@"wish_title"];
        [modelArray addObject:model];
        
    }
    return modelArray;
    
}

@end
